package com.launch.wlfw.controller;

import com.launch.wlfw.service.NoticeService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
public class BookManageIndex {

    @Resource
    NoticeService noticeService;

    @RequestMapping("/index")
    public String welcome(Model model){
        model.addAttribute("noticeList", noticeService.selectAllNotice());
        return "welcome";
    }


}
